import java.util.Scanner;

public class test3 {

    public static void main(String[] args) {

        System.out.print("请输入利润金额：");

        Scanner in = new Scanner(System.in);

        double bonus = 0; //奖金

        double profit = in.nextDouble(); //利润


        if(profit<=0) {

            System.out.println("输入错误");

        }

        else if(profit > 0 && profit <= 10) { //小于10万

            bonus = profit * 0.1;

        } else if(profit > 10 && profit <20) { //10-20万

            bonus =  (profit-10) * 0.075 + 1;

        } else if(profit >=20 && profit <40) { //20-40万

            bonus =  (profit-20)*0.05 + 1.75;

        } else if(profit >=40 && profit < 60) { //40-60万

            bonus =  (profit-40)*0.03 + 2.75;

        } else if(profit >=60 && profit < 100) { //60-100万

            bonus =  (profit-60)*0.015 + 3.35;

        } else {

            bonus =  (profit-100)*0.001 + 3.95; //大于100万

        }

        System.out.println("奖金为："+ (bonus*10000) +"元");

    }

}
